package com.cskaoyan.mall.commons.exception.yyr;

import com.cskaoyan.mall.commons.constant.SysRetCodeConstants;
import com.cskaoyan.mall.commons.result.yyr.AbstractResponse;


/**
 * @Description：
 * @Author: 杨涌仁
 * @Date: 2022/08/25/0025 10:14
 */
public class ExceptionProcessorUtils {
    public static void wrapperHandlerException(AbstractResponse response, Exception e){

        try {
            ExceptionUtil.handlerException4biz(response, e);
        } catch (Exception ex) {
            response.setCode(SysRetCodeConstants.SYSTEM_ERROR.getCode());
            response.setCode(SysRetCodeConstants.SYSTEM_ERROR.getMessage());
        }
    }
}
